package com.osdp.base.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.osdp.base.entity.SysDictItem;

import java.util.List;

public interface ISysDictItemService extends IService<SysDictItem> {
    public IPage<SysDictItem> pageList(SysDictItem dictItem, Page<SysDictItem> page);

    public List<SysDictItem> queryTree();

    public List<SysDictItem> queryByParentId(String parentId);

    public List<SysDictItem> queryAllList(SysDictItem dictItem);

    public List<SysDictItem> getDictListByCode(String itemCode);

    public SysDictItem getByDictItemId(String id);

    public boolean insertDictItem(SysDictItem entity);

    public boolean updateDictItem(SysDictItem entity);

    public boolean deleteDictItem(String id);

    public boolean deleteBatcah(List<String> ids);
}
